//
//  HitTestTableView.m
//  Camera
//
//  Created by gml on 2018/10/16.
//  Copyright © 2018年 gml. All rights reserved.
//

#import "HitTestTableView.h"

@implementation HitTestTableView

- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
//    NSLog(@"point=%@",NSStringFromCGPoint(point));
//    NSLog(@"y=%f",self.contentOffset.y);
    if (point.y<0) {
        return nil;
    }
    NSLog(@"view = %@",[super hitTest:point withEvent:event]);
    return  [super hitTest:point withEvent:event];
}
//- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
//{
//    UITouch *touch = [touches anyObject];
//    CGPoint cur=[touch locationInView:self];//当前点
//    NSLog(@"y = %f",cur.y);
//}

@end
